package com.huaxi.ddgw.user.service.impl;

import com.huaxi.ddgw.model.entity.base.Region;
import com.huaxi.ddgw.user.mapper.UserRegionMapper;
import com.huaxi.ddgw.user.service.UserRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserRegionServiceImpl implements UserRegionService {

    @Autowired
    private UserRegionMapper userRegionMapper;

    //显示收货地址省市区显示
    @Override
    public List<Region> selectByParentCode(Integer code) {
        return userRegionMapper.selectByParentCode(code);
    }
}
